//
//  SuggestCell.m
//  UI Demo
//
//  Created by Rainy Zou on 15/11/30.
//  Copyright © 2015年 Rainy Zou. All rights reserved.
//

#import "SuggestCell.h"


@interface SuggestCell()

@property (nonatomic , weak)UIImageView *image;

@end

@implementation SuggestCell


-(instancetype)initWithFrame:(CGRect)frame
{
    if(self == [super initWithFrame:frame])
    {
        UIImageView *imageView = [[UIImageView alloc]init];
        
        self.image = imageView;
        
        [self addSubview:imageView];
    }
    
    return self;
}

-(void)setSuggest:(SuggestRd *)suggest
{
    _suggest = suggest;
    [self.image setImage:[UIImage imageNamed:suggest.image]];
    
    self.image.frame = CGRectMake(0, 0, 60, 60) ;
}

@end
